<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Welcome to School Home</title>
<link href="css/home.css" type="text/css" rel="stylesheet" />
<link href="css/admin.css" type="text/css" rel="stylesheet" />
<link href="css/calendar.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/calendar.js"> </script>
<script type="text/javascript" src="js/simple.js"> </script>

<!--<script type="text/javascript" src="js/stuAttResult.js"> </script>

--></head>
<body onload="check()">
<div id="container">

<div id="header_section">
<jsp:include page="jsp/header/home_header.jsp"></jsp:include>
</div>

<div id="home">
		
	<div style="width: 75%;height:26px; border: 1px solid #007FFF;text-align: center;">
		<jsp:include page="jsp/menu/admin_menu.jsp"></jsp:include>
	</div>
	
	<div style="float: right; width: 23.5%;height:24px; border: 1px solid #007FFF; margin-top: -28px;">
				<div id="welcome"><b style="color: yellow;"><i>Welcome! &nbsp;<strong style="color: #FFA500">${sessionScope.id}</strong></i></b>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="action.home?cmd=exit" style="color: #00FA9A">Logout</a></div>
	</div>
</div>


<div id="left_menu">
	<c:forEach var="ta" items="${sessionScope.trackAction}">
		${ta}<br>
	</c:forEach>
</div>

<div id="main_body" style="font-family: inherit;font-size: small;" >

	<c:choose>
		<c:when test="${requestScope.insertNewsForm1 == true}">
			<jsp:include page="jsp/admin/insert_news_form.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.updateNewsForm1 == true}">
			<jsp:include page="jsp/admin/update_news_form.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.deleteNewsForm1 == true}">
			<jsp:include page="jsp/admin/delete_news_form.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.newsSuccess == true}">
			<jsp:include page="jsp/admin/news_success.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.errorPage == true}">
			<jsp:include page="jsp/admin/failure_page.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.successPage == true}">
                       <jsp:include page="jsp/admin/success_page.jsp"></jsp:include>
        </c:when>
		<c:when test="${requestScope.viewAllRegistered == true}">
			<jsp:include page="jsp/admin/view_all_registered.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.setExamStatusForm1 == true}">
			<jsp:include page="jsp/admin/publish_result.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.profileManage == true}">
			<jsp:include page="jsp/admin/profile_manage.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.createStudentProfileForm == true}">
			<jsp:include page="jsp/admin/create_student_profile.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.createTeacherProfileForm == true}">
			<jsp:include page="jsp/admin/create_teacher_profile.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.createNonteacherProfileForm == true}">
			<jsp:include page="jsp/admin/create_nonteacher_profile.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.manageStudentProfileForm == true}">
			<jsp:include page="jsp/admin/manage_student_profile.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.manageTeacherProfileForm == true}">
			<jsp:include page="jsp/admin/manage_teacher_profile.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.manageNonteacherProfileForm == true}">
			<jsp:include page="jsp/admin/manage_nonteacher_profile.jsp"></jsp:include>
		</c:when>
		
				
		<c:when test="${requestScope.examManage == true}">
			<jsp:include page="jsp/admin/exam_manage.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.timeTable == true}">
			<jsp:include page="jsp/admin/timetable_manage_form.jsp"></jsp:include>
		</c:when>
		
		
		<c:when test="${requestScope.createStudentTimeTableForm == true}">
			<jsp:include page="jsp/admin/create_student_timetable_form.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.createTeacherTimeTableForm == true}">
			<jsp:include page="jsp/admin/create_teacher_timetable_form.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.updateStudentTimeTableForm == true}">
			<jsp:include page="jsp/admin/update_student_timetable_form.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.updateTeacherTimeTableForm == true}">
			<jsp:include page="jsp/admin/update_teacher_timetable_form.jsp"></jsp:include>
		</c:when>
		
		<c:when test="${requestScope.classManageForm == true}">
			<jsp:include page="jsp/admin/class_manage_form.jsp"></jsp:include>
		</c:when>
		
		<c:when test="${requestScope.displayCourseManageForm == true}">
			<jsp:include page="jsp/admin/course_manager.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.displayExamManageForm == true}">
			<jsp:include page="jsp/admin/exam_manage.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.displayAssignmentManageForm == true}">
			<jsp:include page="jsp/admin/assignment_manage_form.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.displayReportCardManageForm == true}">
			<jsp:include page="jsp/admin/reportcard_manage_form.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.displayFeesManageForm == true}">
			<jsp:include page="jsp/admin/fees_manage_form.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.displayStudentDetailsForm == true}">
			<jsp:include page="jsp/admin/student_details_form.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.displayHiringForm == true}">
			<jsp:include page="jsp/admin/hirings_form.jsp"></jsp:include>
		</c:when>
		
		
		
		<c:when test="${requestScope.attendance == true}">
			<jsp:include page="jsp/admin/attendance_management.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.studentDetails == true}">
			<jsp:include page="jsp/admin/student_details.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.manageNews == true}">
			<jsp:include page="jsp/admin/manage_news.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.adminProfile == true}">
			<jsp:include page="jsp/admin/admin_profile.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.stuAttM == true}">
			<jsp:include page="jsp/admin/student_attendance_manager.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.stuAttR == true}">
			<jsp:include page="jsp/admin/student_attendance_report.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.teaAttM == true}">
			<jsp:include page="jsp/admin/teacher_attendance_manager.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.teaAttR == true}">
			<jsp:include page="jsp/admin/teacher_attendance_report.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.nTeaAttM == true}">
			<jsp:include page="jsp/admin/non_teacher_attendance_manager.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.nTeaAttR == true}">
			<jsp:include page="jsp/admin/non_teacher_attendance_report.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.studentAttendanceMgmt == true}">
			<jsp:include page="jsp/admin/student_attendance.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.employeeAttendanceMgmt== true}">
			<jsp:include page="jsp/admin/employee_attendance.jsp"></jsp:include>
		</c:when>
		<c:when test="${requestScope.gradeManagerPage== true}">
			<jsp:include page="jsp/admin/grade_manager.jsp"></jsp:include>
		</c:when>
	
		<c:otherwise>
			<jsp:include page="jsp/admin/admin_welcome.jsp"></jsp:include>
		</c:otherwise>
	</c:choose>


</div>

</div>

<div id="footer_section">
<jsp:include page="jsp/footer/footer.jsp"></jsp:include>
</div>

</body>
</html>